package com.suxin.notify;

import java.io.Serializable;
import java.util.concurrent.atomic.AtomicLong;

/**
 * @author Tang
 * @classname Event
 * @description [  ]
 * @date 2022/9/30 14:41
 */
public abstract class Event implements Serializable {

    private static final AtomicLong SEQUENCE = new AtomicLong(0);

    private final long sequence = SEQUENCE.getAndIncrement();

    public long getSequence() {
        return sequence;
    }
}
